package assignmentstrategy

import (
	"codejy/analysis/codeanalysis"
	"codejy/structdef"
)

type ThisStrategy struct {
}

func init() {
	RegisterStrategy(&ThisStrategy{})
}
func (n ThisStrategy) getId() int {
	return codeanalysis.This
}

func (n ThisStrategy) Execute(threadStore *structdef.ThreadStore, code string) string {
	currentInstanceAddress := threadStore.CurrentInstanceAddress
	return currentInstanceAddress //返回当前实例地址
}
